<xsl:transform
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:xs="http://www.w3.org/2001/XMLSchema"
 version="2.0"
>

<xsl:template match="/document">
	<html>
	 
	<xsl:call-template name="html-header"/>
	 
	<body lang="RU">
	 
	<div class="Section1">
	
	<xsl:call-template name="doc-header"/>
	 
	<p class="MsoNormal" style='text-indent:1.0cm; width: 599px;'><xsl:value-of select="normalize-space(date/body)"/></p>
	 
	<p class="MsoNormal" style="width: 585px">&#160;</p>
	 
	<p class="MsoNormal" style="width: 598px">&#160;</p>
	 
	<p class="MsoNormal" style="width: 601px">Должность&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;_______________&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ФИО</p>
	 
	<p class="MsoNormal" style='margin-left:233.9pt; width: 286px;'>&#160;</p>
	 
	<p class="MsoNormal" style='margin-left:141.6pt;text-indent:35.4pt; width: 408px;'>
	<xsl:value-of select='format-dateTime(
								xs:dateTime(outgoingDate), "[D01].[M01].[Y0001]")'/></p>
	 
	</div>
	 
	</body>
	 
	</html>
</xsl:template>

<xsl:template name="doc-header">
	<p class="MsoNormal" style='margin-left:212.65pt; width: 315px;'>Генеральному директору</p>
	 
	<p class="MsoNormal" style='margin-left:212.65pt; width: 315px;'>ФГУП «РЧЦ УрФО»</p>
	 
	<p class="MsoNormal" style='margin-left:212.65pt; width: 315px;'><span lang="EN-US">&#160;</span></p>
	 
	<p class="MsoNormal" style='margin-left:212.65pt; width: 315px;'>Б.М. Егорову</p>
	 <!-- 
	<p class="MsoNormal" style='margin-left:212.65pt; width: 315px;'><b>&#160;</b></p>
	 
	<p class="MsoNormal" style='margin-left:212.65pt; width: 315px;'>&#160;</p>
	 
	<p class="MsoNormal" style='margin-left:212.65pt; width: 315px;'><span lang="EN-US">o</span>т  <xsl:value-of select="normalize-space(contragent/name)"/></p>
	 -->
	<p class="MsoNormal" style='margin-left:283.45pt;text-indent:35.15pt; width: 218px;'>
	&#160;</p>
	 
	<p class="MsoNormal" style="width: 590px">&#160;</p>
	 
	<p class="MsoNormal" style="width: 588px">&#160;</p>
	 
	<p class="MsoNormal"><b><span style='font-size:14.0pt'>&#160;</span></b></p>
	 
	<p class="MsoNormal" style="width: 586px"><b><span style='font-size:14.0pt'>&#160;</span></b></p>
</xsl:template>

<xsl:template name="html-header">
	<head>
	<title>Письмо</title>
	<style><![CDATA[
	<!--
	 /* Font Definitions */
	 @font-face
		{font-family:"Cambria Math";
		panose-1:2 4 5 3 5 4 6 3 2 4;}
	@font-face
		{font-family:Cambria;
		panose-1:2 4 5 3 5 4 6 3 2 4;}
	@font-face
		{font-family:Tahoma;
		panose-1:2 11 6 4 3 5 4 4 2 4;}
	 /* Style Definitions */
	 p.MsoNormal, li.MsoNormal, div.MsoNormal
		{margin:0cm;
		margin-bottom:.0001pt;
		font-size:12.0pt;
		font-family:"Times New Roman","serif";}
	h1
		{mso-style-link:"Заголовок 1 Знак";
		margin:0cm;
		margin-bottom:.0001pt;
		page-break-after:avoid;
		font-size:12.0pt;
		font-family:"Times New Roman","serif";}
	h3
		{mso-style-link:"Заголовок 3 Знак";
		margin-top:12.0pt;
		margin-right:0cm;
		margin-bottom:3.0pt;
		margin-left:0cm;
		page-break-after:avoid;
		font-size:13.0pt;
		font-family:"Arial","sans-serif";}
	p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
		{mso-style-link:"Текст выноски Знак";
		margin:0cm;
		margin-bottom:.0001pt;
		font-size:8.0pt;
		font-family:"Tahoma","sans-serif";}
	span.1
		{mso-style-name:"Заголовок 1 Знак";
		mso-style-link:"Заголовок 1";
		font-family:"Cambria","serif";
		font-weight:bold;}
	span.3
		{mso-style-name:"Заголовок 3 Знак";
		mso-style-link:"Заголовок 3";
		font-family:"Cambria","serif";
		font-weight:bold;}
	span.a
		{mso-style-name:"Текст выноски Знак";
		mso-style-link:"Текст выноски";
		font-family:"Tahoma","sans-serif";}
	@page Section1
		{size:595.3pt 841.9pt;
		margin:2.0cm 42.5pt 2.0cm 3.0cm;}
	div.Section1
		{page:Section1;}
	-->]]>
	</style>
	 
	</head>
</xsl:template>

</xsl:transform>	
